package com.weibiao.zhuhai.algorithm;

public class BuyBook {
	
	static final int[] a = {5,30,50};
	static int counter = 0;
	
	public static void main(String[] args) {
		System.out.println(solve());
	}
	
	private static int solve() {
		int ans = 0;
		for(int i=100; i>=0; i--) {
			for(int j=30; j>=0; j--) {
				for(int k=20; k>=0; k--) {
					if( (i*a[0]+j*a[1]+k*a[2]) <=1000 && (i+j+k)==100) {
						ans++;
					}
				}
			}
		}
		
		return ans;
	}
}
